<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        class Student{
            constructor(name,age){
                this.name=name
                this.age=age
                console.log("name:"+name+"  age:"+age)
            }
            sayHi(){
                console.log("hello")
            }
        }
        let s1=new Student("zhangsan",18)
        let s2=new Student("lisi",20)
        console.log(s1)
        s1.sayHi()

        console.log(s1.__proto__ === Student.prototype)
        console.log(s2.__proto__ === Student.prototype)
        console.log(s1.__proto__ === s2.__proto__ ) 
    </script>
</body>
</html>